<h1>Listing des tarifs adherents</h1>

<table>
  <tr>
		<th>ID</th>
		<th>Type</th>
		<th>Tarif</th>
    <th>Reduction</th>
  </tr>

<% for tarif in @tarifs %>
  <tr>
		<td><strong><%= link_to (h tarif.id), tarif %></strong></td>
    <td><strong><%= link_to (h tarif.type), tarif %></strong></td>
    <td><%= h tarif.tarif %></td>
		<td><%= h tarif.reduction %></td>
		
    <td><%= link_to 'Voir', tarif %></td>
    <td><%= link_to 'Editer', edit_tarif_path(tarif) %></td>
    <td><%= link_to 'Detruire', tarif, :confirm => 'Etes-vous sure ?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Créer de nouveaux tarifs =>', new_tarif_path %>
